import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const Lock: AppRouteRecordRaw = {
  path: '/lock',
  name: 'lock',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.lock',
    requiresAuth: true,
    icon: 'icon-archive',
    order: -80,
    roles: ['*'],
  },
  children: [
    {
      path: 'menu',
      name: 'menu',
      component: () => import('@/views/lock/menu/index.vue'),
      meta: {
        locale: 'menu.menu',
        requiresAuth: true,
        roles: ['*'],
        activeMenu: 'menu',
      },
    },
    {
      path: 'role',
      name: 'role',
      component: () => import('@/views/lock/role/index.vue'),
      meta: {
        locale: 'menu.role',
        requiresAuth: true,
        roles: ['*'],
        activeMenu: 'role',
      },
    },
    {
      path: '/admin',
      name: 'admin',
      component: () => import('@/views/lock/admin/index.vue'),
      meta: {
        locale: 'menu.admin',
        requiresAuth: true,
        roles: ['*'],
        activeMenu: 'admin',
      },
    },
  ],
};

export default Lock;
